//
// Created by 51165 on 2025/10/22.
//
#include <stdio.h>
int main() {
    int arr[10] = {0};
    for (int i = 0; i < 10;i++) {
        scanf("%d",&arr[i]);
    }
    for (int i = 9;i >= 0;i--) {
        printf("%d ",arr[i]);
    }
}